package com.coolingme.wildcard;

/**
 * 通配符泛型
 *
 * @author wangyue
 * @date 2019/4/4 11:24
 */
public class WildGenericity<T> {

    private T t;

    public WildGenericity(T t) {
        this.t = t;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }

    public void hello() {
        System.out.println("t的类型为："+t.getClass().getName());
    }
}
